Skip to content

Conversation

rvagg
Copy link
Member

@rvagg rvagg commented Jun 14, 2024

Doesn't quite work, something wrong with the bessel library that makes it panic.

In this current form it just takes a file full of chain tipset counts. I took https://github.com/consensus-shipyard/ec-finality-calculator/blob/main/finality_calc_validator.py and put this just before the print(finality_calc_validator(chain, e, f, c, s)):

    filename = "chain.txt"
    with open(filename, 'w') as file:
        for item in chain:
            file.write("%s\n" % item)

    # Print the filename
    print(f"Chain written to: {os.path.abspath(filename)}")

Then I can run lotus-shed finality-calculator /path/to/chain.txt and 🤞 for a comparable result. But so far I just get a panic at the call to bessel.I(). 🤷

Copy link

github-actions bot commented Jun 14, 2024

All checks have passed

@rvagg rvagg force-pushed the rvagg/finality-calculator branch from b7c77ce to 17a2894 Compare June 17, 2024 23:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant